package com.atguigu.gulimall.seckill.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.seckill.feign.fallback.SeckillFeignSkillInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "gulimall-product",fallback = SeckillFeignSkillInfo.class)
public interface ProductFeign {
    @RequestMapping("product/skuinfo/info/{skuId}")
    R skuInfo(@PathVariable("skuId") Long skuId);
}
